﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace CPAScoringPerformanceTester
{
    class TaskThreader
    {
        private Thread thread = null;

        public TaskThreader()
        {
            
        }

        public void Start(Action action)
        {
            this.thread = new Thread(new ThreadStart(action));
            this.thread.Start();
        }

        public void Stop()
        {
            if (thread != null)
            {
                thread.Abort();
            }
        }
    }
}
